//
//  HSatisItemTableViewCell.m
//  NursingManages
//
//  Created by Zhen Huang on 17/6/23.
//  Copyright © 2017年 huangzhen. All rights reserved.
//

#import "HSatisItemTableViewCell.h"

@implementation HSatisItemTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.button];
        [self.contentView addSubview:self.label];
    }
    return self;
}

- (UIButton *)button
{
    if (!_button) {
        _button = [UIButton buttonWithType:UIButtonTypeCustom];
        _button.frame = CGRectMake(10, 10, 25, 25);
    }
    return _button;
}
- (UILabel *)label
{
    if (!_label) {
        _label = [[UILabel alloc]initWithFrame:CGRectMake(self.button.right + 10, 10, ScreenWidth - self.button.right - 10, 25)];
        _label.font = [UIFont systemFontOfSize:14];
    }
    return _label;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
